# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=dnsenum
pkgver=1.2.4.2
pkgrel=7
groups=('blackarch' 'blackarch-recon' 'blackarch-scanner')
pkgdesc='Script that enumerates DNS information from a domain, attempts zone transfers, performs a brute force dictionary style attack, and then performs reverse look-ups on the results.'
arch=('any')
url='https://github.com/fwaeytens/dnsenum/'
license=('GPL')
depends=('perl' 'perl-net-dns' 'perl-net-ip' 'perl-net-netmask'
         'perl-www-mechanize' 'perl-net-whois-ip' 'perl-xml-writer'
         'perl-string-random')
source=("https://github.com/fwaeytens/$pkgname/archive/$pkgver.zip")
sha512sums=('9644134426a0cf4c1f264152dbcd84a2ec9214fd0865749cb82164cf5edfc55559c2b7b2878d99a263a01072043e74176b52cd7b52b69865217a0823a6bfb1b6')

package() {
  cd "$pkgname-$pkgver"

  install -Dm 755 "$pkgname.pl" "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 dns.txt "$pkgdir/usr/share/$pkgname/dns.txt"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md INSTALL.txt
}

